From: Lukáš Tyrychtr Date: Fri, 26 Sep 2025 15:35:20 +0000 (+0200) Subject: screenshot: Improve accessibility of the icon label buttons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~55^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=56f093751debdf314bed1d2a7b16e6ce088da87a;p=gnome-shell.git screenshot: Improve accessibility of the icon label buttons Set the label actor properly so the buttons have a label. Part-of: (cherry picked from commit 53dade4c0ab4f1dd4f1ba286d8e867360e32e54c) --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index f3ac6fc28..1b39cccc7 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -62,10 +62,12 @@ class IconLabelButton extends St.Button { this.set_child(this._container); this._container.add_child(new St.Icon({icon_name: iconName})); - this._container.add_child(new St.Label({ + const labelActor = new St.Label({ text: label, x_align: Clutter.ActorAlign.CENTER, - })); + }); + this.set({labelActor}); + this._container.add_child(labelActor); } });